package com.mew.common.entity.record;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author ztq
 * @since 2021-04-07
 */

@Data
@ToString
@TableName("r_jewel_record")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class JewelRecord {


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 来自哪个用户
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 0, 普通， 1，限时购买， 2， 其他
     */
    @TableField("buy_type")
    private Integer buyType;

    /**
     * 钱
     */
    @TableField("buy_money")
    private Double buyMoney;

    /**
     * 金币
     */
    @TableField("buy_number")
    private Long buyNumber;

    /**
     * 购买前金额
     */
    @TableField("before_number")
    private Long beforeNumber;

    /**
     * 添加时间 转账时间
     */
    @TableField("add_time")
    private Date addTime;

}
